package com.jcfk.eam.enums;

/**
 * 作业类别
 */
public enum TaskKind {
    /**
     * 巡检
     */
    ROUTE_INSPECTION(1,"巡检"),
    /**
     * 点检
     */
    POINT_INSPECTION(2,"点检"),
    /**
     * 预防性维护
     */
    MAINTAIN(3,"预防性维护"),

    /**
     * 自主保全
     */
    SELF_MAINTAIN(5,"自主保全");

    /**
     * 编码
     */
    private Integer value;

    /**
     * 名称
     */
    private String desc;

    TaskKind(Integer value, String desc){
        this.value = value;
        this.desc = desc;
    }

    public Integer getValue(){
        return value;
    }

    public String getCode(){
        return value.toString();
    }

    public String getDesc(){
        return desc;
    }
}
